Added and removed some new lines to have one new line between two
functions
Change-Id: I1ccfbd575dd26b160396ef3d3e2e079f5cdbe196
15 files changed:
}
return self::element( 'textarea', $attribs, $spacedValue );
}
}
return self::element( 'textarea', $attribs, $spacedValue );
}
/**
* Build a drop-down box for selecting a namespace
*
/**
* Build a drop-down box for selecting a namespace
*
function setOffset( $offset ) {
$this->mOffset = $offset;
}
function setOffset( $offset ) {
$this->mOffset = $offset;
}
/**
* Set the limit from an other source than the request
*
/**
* Set the limit from an other source than the request
*
array( 'Sanitizer', 'normalizeCharReferencesCallback' ),
$text );
}
array( 'Sanitizer', 'normalizeCharReferencesCallback' ),
$text );
}
/**
* @param string $matches
* @return string
/**
* @param string $matches
* @return string
wfProfileOut( __METHOD__ );
return $bar;
}
wfProfileOut( __METHOD__ );
return $bar;
}
/**
* Add content from a sidebar system message
* Currently only used for MediaWiki:Sidebar (but may be used by Extensions)
/**
* Add content from a sidebar system message
* Currently only used for MediaWiki:Sidebar (but may be used by Extensions)
wfProfileOut( __METHOD__ );
return $s;
}
wfProfileOut( __METHOD__ );
return $s;
}
/**
* Get the rel attribute for a particular external link.
*
/**
* Get the rel attribute for a particular external link.
*
/**
* Get an associative array of additional HTML attributes appropriate for a
* particular external link. This currently may include rel => nofollow
/**
* Get an associative array of additional HTML attributes appropriate for a
* particular external link. This currently may include rel => nofollow
/**
* Returns true if there are no arguments in this frame
*
/**
* Returns true if there are no arguments in this frame
*
return wfAppendQuery( wfScript( 'load' ), $query );
}
return wfAppendQuery( wfScript( 'load' ), $query );
}
/**
* @param $context ResourceLoaderContext
* @return string
/**
* @param $context ResourceLoaderContext
* @return string
}
return '<span class="history-deleted">' . $link . '</span>';
}
}
return '<span class="history-deleted">' . $link . '</span>';
}
/**
* Generate a user tool link cluster if the current user is allowed to view it
* @return string HTML
/**
* Generate a user tool link cluster if the current user is allowed to view it
* @return string HTML
$lc = $this->legalSearchChars();
return trim( preg_replace( "/[^{$lc}]/", " ", $text ) );
}
$lc = $this->legalSearchChars();
return trim( preg_replace( "/[^{$lc}]/", " ", $text ) );
}
/**
* Load up the appropriate search engine class for the currently
* active database backend, and return a configured instance.
/**
* Load up the appropriate search engine class for the currently
* active database backend, and return a configured instance.
$result->initFromTitle( $title );
return $result;
}
$result->initFromTitle( $title );
return $result;
}
/**
* Return a new SearchResult and initializes it with a row.
*
/**
* Return a new SearchResult and initializes it with a row.
*
/**
* A SearchResultSet wrapper for SearchEngine::getNearMatch
*/
class SearchNearMatchResultSet extends SearchResultSet {
private $fetched = false;
/**
* A SearchResultSet wrapper for SearchEngine::getNearMatch
*/
class SearchNearMatchResultSet extends SearchResultSet {
private $fetched = false;
/**
* @param $match mixed Title if matched, else null
*/
public function __construct( $match ) {
$this->result = $match;
}
/**
* @param $match mixed Title if matched, else null
*/
public function __construct( $match ) {
$this->result = $match;
}
public function hasResult() {
return (bool)$this->result;
}
public function hasResult() {
return (bool)$this->result;
}
public function numRows() {
return $this->hasResults() ? 1 : 0;
}
public function numRows() {
return $this->hasResults() ? 1 : 0;
}
public function next() {
if ( $this->fetched || !$this->result ) {
return false;
public function next() {
if ( $this->fetched || !$this->result ) {
return false;
$t = preg_replace( '/([-&|])/', '\\\\$1', $t );
return $t;
}
$t = preg_replace( '/([-&|])/', '\\\\$1', $t );
return $t;
}
/**
* Create or update the search index record for the given page.
* Title and text should be pre-processed.
/**
* Create or update the search index record for the given page.
* Title and text should be pre-processed.
parent::__construct( $row );
$this->score = $row->score;
}
parent::__construct( $row );
$this->score = $row->score;
}
function getScore() {
return $this->score;
}
function getScore() {
return $this->score;
}
function isListed() {
return $this->mListed;
}
function isListed() {
return $this->mListed;
}
/**
* Set whether this page is listed in Special:Specialpages, at run-time
* @since 1.3
/**
* Set whether this page is listed in Special:Specialpages, at run-time
* @since 1.3
function setListed( $listed ) {
return wfSetVar( $this->mListed, $listed );
}
function setListed( $listed ) {
return wfSetVar( $this->mListed, $listed );
}
/**
* Get or set whether this special page is listed in Special:SpecialPages
* @since 1.6
/**
* Get or set whether this special page is listed in Special:SpecialPages
* @since 1.6
$this->getLanguage()->formatNum( $this->images ),
array( 'class' => 'mw-statistics-files' ) );
}
$this->getLanguage()->formatNum( $this->images ),
array( 'class' => 'mw-statistics-files' ) );
}
private function getEditStats() {
return Xml::openElement( 'tr' ) .
Xml::tags( 'th', array( 'colspan' => '2' ), $this->msg( 'statistics-header-edits' )->parse() ) .
private function getEditStats() {
return Xml::openElement( 'tr' ) .
Xml::tags( 'th', array( 'colspan' => '2' ), $this->msg( 'statistics-header-edits' )->parse() ) .
$form->setSubmitText( $this->msg( 'upload-tryagain' )->escaped() );
$this->showUploadForm( $form );
}
$form->setSubmitText( $this->msg( 'upload-tryagain' )->escaped() );
$this->showUploadForm( $form );
}
/**
* Stashes the upload, shows the main form, but adds a "continue anyway button".
* Also checks whether there are actually warnings to display.
/**
* Stashes the upload, shows the main form, but adds a "continue anyway button".
* Also checks whether there are actually warnings to display.
str_replace( "_", " ", "[[MediaWiki:Some_random_test_page]]");
}
str_replace( "_", " ", "[[MediaWiki:Some_random_test_page]]");
}
function benchstrtr_indirect() {
bfNormalizeTitleStrTr( "[[MediaWiki:Some_random_test_page]]" );
}
function benchstrtr_indirect() {
bfNormalizeTitleStrTr( "[[MediaWiki:Some_random_test_page]]" );
}